Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Markervision fix: Fixed registry table being able to have duplicates #1712

Merged
merged 2 commits into from
Jan 6, 2025

Conversation

TW1STaL1CKY
Copy link
Contributor

I discovered that when new marker vision objects are made with markerVision.Add, it doesn't clear out existing versions of the same object (matching ent and indentifier). This leads to the markerVision.registry table being filled up with objects that do not clear themselves, and makes markerVision.Get potentially return obsolete markers (mainly observed serverside).

This PR resolves this possible bloat issue in the registry. This also fixes an issue where marker vision objects can incorrectly change to being visible to team or visible to role (clientside), when it's supposed to be visible to everyone.

@TimGoll
Copy link
Member

TimGoll commented Jan 6, 2025

That's a smart change! While it was intentional the way I did it, I do like your change. We will merge it as soon as you add yourself to the changelog.

@TW1STaL1CKY
Copy link
Contributor Author

Sorry, there we go 😄

@saibotk saibotk merged commit 705dbec into TTT-2:master Jan 6, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants